package com.qys.livesMall.app.user.controller.app;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qys.livesMall.app.user.model.dto.AppBaseDTO;
import com.qys.livesMall.app.user.model.vo.app.AppUserGoldRecordVO;
import com.qys.livesMall.app.user.service.AppUserGoldRecordService;
import com.qys.livesMall.common.result.R;
import com.qys.livesMall.framework.utils.SecurityUtils;
import com.qys.livesMall.framework.view.BaseQuery;
import com.qys.livesMall.framework.view.QysPage;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户金币账户流水表 前端控制器
 * </p>
 *
 * @author wzy
 * @since 2023-06-24
 */
@RestController
@RequestMapping("/app/user/goldRecord")
@Tag(name = "用户金币流水", description = "用户关注列表")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class AppUserGoldRecordController {

    private final AppUserGoldRecordService appUserGoldRecordService;

    @PostMapping("/page")
    @Operation(summary = "分页查询金币流水信息")
    public R<QysPage<AppUserGoldRecordVO>> page(@RequestBody BaseQuery baseQuery) {
        return R.ok(appUserGoldRecordService.page(baseQuery));
    }
}
